<{include file='db:smartsection_header.html'}>

<div class="item">
	<h2><{$item.title}></h2>

	<{if $display_whowhen_link}>
		<small><{$item.who_when}> (<{$item.counter}> <{$lang_reads}>)</small>
	<{/if}>

	<div class="itemBody">
		<{if $item.image_path}>
	    	<img class="smartsection_item_image" src="<{$item.image_path}>"  align="right" alt="<{$item.clean_title}>" title="<{$item.clean_title}>" />
	    <{/if}>
	    <{if $pagenav}>
	    	<div class="smartsection_pagenav_top"><{$lang_page}>: <{$pagenav}></div>
	  	<{/if}>
	  	<div class="itemText">
	  	  <{$item.maintext}>
	    </div>
	    <{if $item.embeded_files}>
	    	<div id="smartsection_embeded_files">
			    <{foreach item=file from=$item.embeded_files}>
					<div><{$file.content}></div>
			    <{/foreach}>
			</div>
		<{/if}>
	    <{if $pagenav}>
	    	<div class="smartsection_pagenav_bottom"><{$lang_page}>: <{$pagenav}></div>
	  	<{/if}>
	  	<{if $tagbar}>
		  	<p><{include file="db:tag_bar.html"}></p>
		<{/if}>
	</div>

	<{if $itemfooter}>
		<div class="smartsection_itemfooter"><{$itemfooter}></div>
	<{/if}>

	<div class="pre_itemInfo">
		<div class="itemInfo" style="height: 14px;">
	  		<{if $display_comment_link && $item.cancomment}>
				<span style="float: left;"><a href="<{$item.itemurl}>"><{$item.comments}> <{$lang_comments}></a></span>
	  	  	<{else}>
				<span style="float: left;">&nbsp;</span>
	  	  	<{/if}>
	  	  	<span style="float: right; text-align: right;"><{$item.adminlink}></span>
	  	  	<div style="height: 0; display: inline; clear: both;"></div>
	  	</div>
	</div>
</div>
<br />

<{if $item.files}>
	<table border="0" width="90%" cellspacing="1" cellpadding="0" align="center" class = "outer">
	<tr>
		<td colspan="4" class="itemHead"><b><{$lang_files_linked}></b></td>
	</tr>
	<tr class="even">
		<td align="left" class="itemTitle"><b><{$lang_file_name}></b></td>
	    <td align="center" width="100px" class="itemTitle"><b><{$lang_datesub}></b></td>
	    <td align="center" width="50px" class="itemTitle"><b><{$lang_hits}></b></td>
	</tr>

	<!-- BEGIN DYNAMIC BLOCK -->
  	<{foreach item=file from=$item.files}>
  	<tr>
 		<td class="odd" align="left">
		<a href="<{$xoops_url}>/modules/smartsection/visit.php?fileid=<{$file.fileid}>" target="_blank"><img src="<{$smartsection_url}>images/icon/file.gif" title="<{$lang_download_file}>" alt="<{$lang_download_file}>"/>&nbsp;<b><{$file.name}></b></a>
		<div><{$file.description}></div >
 		<td class="odd" align="center"><{$file.datesub}></td>
 		<td class="odd" align="center"><{$file.hits}></td>
 	</tr>
  	<{/foreach}>
	<!-- END DYNAMIC BLOCK -->
 	<tr>
 	</tr>
	</table>
	<br />
<{/if}>
<!--next line is to include smarttie -->
<{if $smarttie==1}>
	<{include file='db:smarttie_links.html'}>
<{/if}>
<!--end smarttie -->
<{$adsense_ec4ba22c4b17ca5789b191e186c53b7f}>
<{if $other_items == "previous_next"}>
  <{if $previous_item_link || $next_item_link}>
    <table class="outer">
      <tr>
        <td class="itemHead" colspan="2"><b><{$lang_items_links}></b></td>
      </tr>
      <tr style="vertical-align: middle;">
        <td class="odd" width="50%" align="left">
          <{if $previous_item_link}>
            <a href="<{$previous_item_url}>"><img style="vertical-align: middle;" src="<{$smartsection_images_url}>links/previous.gif" title="<{$lang_previous_item}>" alt="<{$lang_previous_item}>"/></a>
            <{$previous_item_link}>
          <{/if}>
        </td>
        <td class="odd" width="50%" align="right">
          <{if $next_item_link}>
            <{$next_item_link}>
            <a href="<{$next_item_url}>"><img style="vertical-align: middle;" src="<{$smartsection_images_url}>links/next.gif" title="<{$lang_next_item}>" alt="<{$lang_next_item}>"/></a>
          <{/if}>
        </td>
      </tr>
    </table>
  <{/if}>
<{elseif $other_items == 'all'}>
  <table border="0" width="90%" cellspacing="1" cellpadding="3" align="center" class= "outer">
	<tr>
	  <td align="left" class="itemHead" width='65%'><b><{$lang_item}></b></td>
		<{if $display_date_col == 1}>
	    	<td align="center" class="itemHead" width="25%"><b><{$lang_datesub}></b></td>
	    <{/if}>
		<{if $display_hits_col == 1}>
	    	<td align="center" class="itemHead" width="10%"><b><{$lang_hits}></b></td>
	    <{/if}>
	</tr>
  	    <!-- Start item loop -->
  	    <{foreach item=item from=$items}>
  		  <tr>
  	   		  <td class="even" align="left"><{$item.titlelink}></td>
	    	  <{if $display_date_col == 1}>
 	    		  <td class="odd" align="left"><div align="center"><{$item.datesub}></div></td>
	    	  <{/if}>
			  <{if $display_hits_col == 1}>
	    		  <td class="odd" align="left"><div align="center"><{$item.counter}></div></td>
	    	  <{/if}>
		  </tr>
  	    <{/foreach}>
	    <!-- End item loop -->
  </table>
<{/if}>
<{if $rating_enabled && $smartobject_rating_item}>
	<{include file='db:smartobject_rating_form.html'}>
<{/if}>

<{include file='db:smartsection_footer.html'}>